package com.leave.dao;

import java.util.List;

import com.leave.entity.Menu;

public interface MenuMapper {
    int deleteByPrimaryKey(Integer menuId);

    int insert(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(Integer menuId);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

	List<Menu> getMenuListByRoleName(String roleName);
	
	List<Menu> getChildMenuListByMenuId(int menu_Id);

	List<Menu> getAllParentMenu();

	int deleteByArrId(int[] arrId);

	Menu getMenuByMenuName(String menuName);

}